package com.isljj.web_chat2.config;


import com.isljj.web_chat2.model.Result;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

//@ControllerAdvice
//@ResponseBody
//public class ExceptionAdvice {
//    @ExceptionHandler(Exception.class)
//    public Result<Boolean> exceptionAdvice(Exception e) {
//
//        return new Result<>(-1, e.getMessage(),false);
//    }
//}